package app.Insam.VNC;


public enum InsamPreferencesKey {
	//<default>
	GPS_Use("GU"),
	ColorFormat("CF"),
	HomePC_Use("HU"),
	HomePC_IP("HI"),
	HomePC_Port("HP"),
	HomePC_KeepPasswd("HK"),
	OfficePC_Use("OU"),
	OfficePC_IP("OI"),
	OfficePC_Port("OP"),
	OfficePC_ID("OD"),
	OfficePC_AutoLogin("OA"),
	
	/* followings are for debugging */
	Debugger_Use("DBG"),
	Office_SSID("SSID"),
	Office_Location("OL"),
	
	//<Vnc Canvas>
	;

	String keyName;
	
	private InsamPreferencesKey(String _name) {
		keyName=_name;
	}

	@Override
	public String toString() {
		return keyName;
	}
	
	public static InsamPreferencesKey keyOf(String _name) {		
		for(InsamPreferencesKey key : InsamPreferencesKey.values()) {
			if(key.keyName.equals(_name)) return key;
		}		
		return null;
	}
}
